package poi;

public class GlobalDataKeeper {
	private POIDatabase data;
	
	public GlobalDataKeeper () {
		data = new POIDatabase();
		data.connectSource("");
	}

	public GlobalDataKeeper (String fileName) {
		data = new POIDatabase();
		data.connectSource(fileName);
	}	
	
	/**
	 * @return the data
	 */
	public POIDatabase getData() {
		return data;
	}
	
	public void saveData() {
		data.postData("POISystem\\poidata.csv");
	}

	public void saveData(String fileName) {
		data.postData(fileName);
	}
}
